export const IsLogined = () => {
    return localStorage.getItem("admin-token") !== null && localStorage.getItem("admin-token") != "";
}
export const SetToken = (token) => {
    if(!token) return
    return localStorage.setItem("admin-token",token);
}
export const GetToken = () => {
    return localStorage.getItem("admin-token");
}
export const EmptyToken = () => {
    return localStorage.setItem("admin-token","");
}

export const IsAdmin = () => {
    return localStorage.getItem("uid") == "-1";
}
export const userId = () => {
    return localStorage.getItem("uidId");
}
